::-webkit-scrollbar {
    width: 13px;
    height: 13px;
    //width: 0 !important;
    //-ms-overflow-style: none;
    //overflow: -moz-scrollbars-none;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-track:hover {
    background-color: #f8fafc;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    color: #333;
    background-color: $g-app-bg;
    box-sizing: border-box;
    font-family: Lato, PingFang SC, Microsoft YaHei, sans-serif;
    -webkit-tap-highlight-color: transparent;
    &.hidden {
        overflow: hidden;
    }
}
* {
    box-sizing: inherit;
}
// 右侧内容区针对fixed元素，有横向铺满的需求，可在fixed元素上设置 [data-fixed-calc-width]
[data-layout=adaption] {
    [data-fixed-calc-width] {
        width: calc(100% - #{$g-main-sidebar-width} - #{$g-sub-sidebar-width});
    }
    &[data-sidebar-no-collapse] {
        [data-fixed-calc-width] {
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX($g-sub-sidebar-width / 2);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(100% - #{$g-sub-sidebar-width});
                transform: translateX(-50%) translateX($g-sub-sidebar-width / 2);
            }
        }
    }
    &[data-sidebar-collapse] {
        [data-fixed-calc-width] {
            width: calc(100% - #{$g-main-sidebar-width} - 64px);
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX(32px);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(100% - 64px);
                transform: translateX(-50%) translateX(32px);
            }
        }
    }
}
[data-layout=adaption-min-width] {
    [data-fixed-calc-width] {
        width: calc(100% - #{$g-main-sidebar-width} - #{$g-sub-sidebar-width});
    }
    &[data-sidebar-no-collapse] {
        [data-fixed-calc-width] {
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX($g-sub-sidebar-width / 2);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(100% - #{$g-sub-sidebar-width});
                transform: translateX(-50%) translateX($g-sub-sidebar-width / 2);
            }
        }
    }
    &[data-sidebar-collapse] {
        [data-fixed-calc-width] {
            width: calc(100% - #{$g-main-sidebar-width} - 64px);
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX(32px);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(100% - 64px);
                transform: translateX(-50%) translateX(32px);
            }
        }
    }
}
[data-layout=center] {
    [data-fixed-calc-width] {
        width: calc(#{$g-app-width} - #{$g-main-sidebar-width} - #{$g-sub-sidebar-width});
    }
    &[data-sidebar-no-collapse] {
        [data-fixed-calc-width] {
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX($g-sub-sidebar-width / 2);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(#{$g-app-width} - #{$g-sub-sidebar-width});
                transform: translateX(-50%) translateX($g-sub-sidebar-width / 2);
            }
        }
    }
    &[data-sidebar-collapse] {
        [data-fixed-calc-width] {
            width: calc(#{$g-app-width} - #{$g-main-sidebar-width} - 64px);
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX(32px);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(#{$g-app-width} - 64px);
                transform: translateX(-50%) translateX(32px);
            }
        }
    }
}
[data-layout=center-max-width] {
    [data-fixed-calc-width] {
        width: calc(#{$g-app-width} - #{$g-main-sidebar-width} - #{$g-sub-sidebar-width});
    }
    &[data-sidebar-no-collapse] {
        [data-fixed-calc-width] {
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX($g-sub-sidebar-width / 2);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(#{$g-app-width} - #{$g-sub-sidebar-width});
                transform: translateX(-50%) translateX($g-sub-sidebar-width / 2);
            }
        }
    }
    &[data-sidebar-collapse] {
        [data-fixed-calc-width] {
            width: calc(#{$g-app-width} - #{$g-main-sidebar-width} - 64px);
            transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX(32px);
        }
        &[data-no-main-sidebar] {
            [data-fixed-calc-width] {
                width: calc(#{$g-app-width} - 64px);
                transform: translateX(-50%) translateX(32px);
            }
        }
    }
}
[data-layout=center],
[data-layout=center-max-width] {
    @media screen and (max-width: $g-app-width) {
        [data-fixed-calc-width] {
            width: calc(100% - #{$g-main-sidebar-width} - #{$g-sub-sidebar-width});
        }
        &[data-sidebar-no-collapse] {
            [data-fixed-calc-width] {
                transform: translateX(-50%) translateX($g-main-sidebar-width / 2) translateX($g-sub-sidebar-width / 2);
            }
            &[data-no-main-sidebar] {
                [data-fixed-calc-width] {
                    width: calc(100% - #{$g-sub-sidebar-width});
                    transform: translateX(-50%) translateX($g-sub-sidebar-width / 2);
                }
            }
        }
        &[data-sidebar-collapse] {
            [data-fixed-calc-width] {
                width: calc(100% - #{$g-main-sidebar-width} - 64px);
            }
            &[data-no-main-sidebar] {
                [data-fixed-calc-width] {
                    width: calc(100% - 64px);
                }
            }
        }
    }
}
[data-mode=mobile] {
    [data-fixed-calc-width] {
        width: 100% !important;
        transform: translateX(-50%) !important;
    }
}
// remix icon
[class^="ri-"],
[class*=" ri-"] {
    display: inline-block;
    vertical-align: bottom;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}
.el-button [class*=ri-] + span {
    margin-left: 5px;
}
// textarea 字体跟随系统
textarea {
    font-family: inherit;
}

// 自定义样式
.user-content .el-date-editor--datetimerange.el-input__inner {
    width: 100%;
}
.personnel .el-date-editor--datetimerange.el-input__inner {
    width: 100%;
}
header {
    z-index: 1002 !important;
}
// 超出隐藏2行
.over-hidden {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
// element 按钮自定义的
.my-btn {
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
}
// flex 居中
.flc {
    display: flex;
    align-items: center;
}
// 上传 图片
.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.avatar-uploader .el-upload:hover {
    border-color: #409eff;
}
.avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
}
.avatar {
    width: 120px;
    height: 120px;
    display: block;
}
// dialog 插槽的标题2行
.dialog-title {
    font-size: 18px;
    color: #303133;
}
.dialog-subtitle {
    font-size: 12px;
    color: #999;
}
.personnel-dialog .el-dialog {
    min-width: 777px;
}
.personnel-dialog .el-autocomplete {
    width: 100%;
}
